package com.zuoye.test;

import com.zuoye.extend.Common;
import com.zuoye.method.MethodDome01;
import com.zuoye.signin.SigninMethod;

import static com.zuoye.method.MethodDome01.students;
import java.util.Scanner;
/*
 * @version v1.0
 * @Description
 * @Author admin
 * @date 2021/7/7  17:00
 * @Copyright
 */
public class zuoye extends Common {

    public static void main(String[] args) {

        do {
            int login = MethodDome01.getLogin(scanner);

            //flag = false;

            if (login == 1) {


                SigninMethod.DengLu();


                if (flag = true)  {

                    //菜单
                    SigninMethod.showMenu();
                    break;
                }else{
                    System.out.println("用户名或者密码错误！请重新输入：");
                }

            }else if(login == 2) {
                break;
            }else if (login>2){
                System.out.println("再给你一次机会，希望你不要不中用！");

            }
           // System.out.println("已退出操作程序！若继续操作请登录！");
        }while (!flag);
    }




}

